<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <v-damu></v-damu>
    </div>
</body>
<script src="./js/vue.js"></script>
<script>


    //只有当一个组件出现在对应组件的模板上时 才会产生父子关系
    Vue.config.productionTip = false;

    Vue.component("v-damu",{
        template:`<div>v-damu <v-qhf></v-qhf> </div>`
    })

    Vue.component("v-qhf",{
        template:`<div>v-qhf</div>`
    })

    new Vue({
        el:"#app"
    })
</script>
</html>